package eu.testing.system.models;

public class Variant {
	private int testId;
	private int questionId;
	private int variantId;
	private boolean truth;
	private String value;

	public Variant() {
		super();

	}

	public Variant(int testId, int questionId, int variantId, boolean truth,
			String value) {
		super();
		this.testId = testId;
		this.questionId = questionId;
		this.variantId = variantId;
		this.truth = truth;
		this.value = value;
	}

	public int getQuestionId() {
		return questionId;
	}

	public void setQuestionId(int questionId) {
		this.questionId = questionId;
	}

	public int getVariantId() {
		return variantId;
	}

	public void setVariantId(int variantId) {
		this.variantId = variantId;
	}

	public boolean isTruth() {
		return truth;
	}

	public void setTruth(boolean truth) {
		this.truth = truth;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Override
	public String toString() {
		StringBuilder result = new StringBuilder();
		String NEW_LINE = System.getProperty("line.separator");
		result.append(this.getClass().getName() + " Object { " + NEW_LINE);
		result.append(" TEST_ID: " + this.testId + NEW_LINE);
		result.append(" QUESTION_ID: " + this.questionId + NEW_LINE);
		result.append(" VARIANT_ID: " + this.variantId + NEW_LINE);
		result.append(" TRUTH: " + this.truth + NEW_LINE);
		result.append(" VALUE: " + this.value + NEW_LINE);
		result.append("}");

		return result.toString();
	}

	public int getTestId() {
		return testId;
	}

	public void setTestId(int testId) {
		this.testId = testId;
	}

}
